import React from 'react';
import {WebView as RNWebView} from 'react-native-webview';
import type {ApplicationScreenProps} from "@/types/navigation";
import {ImmerseScreen} from "@/components/template";

const WebView = ({navigation, route}: ApplicationScreenProps) => {
    const {uri} = route.params!;
    return (
        <ImmerseScreen>
            <RNWebView source={{uri}}></RNWebView>
        </ImmerseScreen>
    );
};

export default WebView;